package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingPlanMapper
 * @Author LPK
 * @Date 2024-10-18
 */
@Mapper
public interface NursingPlanMapper {

    /**
     修改护理计划
     */
    void updateNursingPlan(NursingPlan nursingPlan);

    /**
     删除护理计划
     */
    void deleteNursingPlan(Integer id);

    /**
     启用或禁用
     */
    void updateStatus(@Param("id") Integer id, @Param("status") Integer status);

    /**
     * 查询所有护理计划
     * @return
     */
    List<NursingPlanVo> getAll() ;

    /**
     * 新增护理计划
     * @param bean
     * @return
     */
    void add(NursingPlan bean);

    /**
     * 护理计划分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlanVo> nursingPlanPaginationQuery(String name, Integer status);

    /**
     * 根据id查询护理计划
     * @return
     */
    NursingPlanVo searchNursingPlanById(Integer id);
}
